package com.liu.model;

import java.util.List;

public class Classs {
    private Integer id;
    private String className;
    private Integer num;
    private String teacher;

    private List<Student> students;

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public Classs() {
    }

    public Classs(String className, Integer num, String teacher) {
        this.className = className;
        this.num = num;
        this.teacher = teacher;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Classs{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", num=" + num +
               teacher + '\'' +
                '}';
    }
}
